package cn.edu.java.stream.C终结操作;

import java.util.Arrays;
import java.util.List;

public class countDemo {
    public static void main(String[] args) {
        List<String> fruits = Arrays.asList("apple", "banana", "orange");
        long count = fruits.stream().count();
        System.out.println(count);
    }
}
